package day4;

import java.util.*;

/**
 * @author oldliu
 * @since 1.0
 */
public class FAnxing1 {
    public static void main(String[] args) {
        List<String> list=new ArrayList<>();
        list.add("你好");
        list.add("xiawu");
        list.add("小狗");
        //list.add(4.65);
        for(String s:list)
            System.out.println(s);
        System.out.println(">>>>>>>>>>>>>>");
        for(int i=0;i<list.size();i++){
            String str = list.get(i);
            System.out.println(str);
        }
        System.out.println(">>>>>>>>>>>>>");
        Iterator<String> iterator = list.iterator();
        while (iterator.hasNext()){
            String s=iterator.next();
            System.out.println(s);
        }
    }
}
